import request from '@/utils/request'

// 查询门店照片列表
export function listPoint (query) {
  return request({
    url: '/bus/point/list',
    method: 'post',
    data: query
  })
}

// 查询门店照片详细
export function getPoint (PLACEPOINTID) {
  return request({
    url: '/bus/point/' + PLACEPOINTID,
    method: 'get'
  })
}

// 新增门店照片
export function addPoint (data) {
  return request({
    url: '/bus/point',
    method: 'post',
    data: data
  })
}

// 修改门店照片
export function updatePoint (data) {
  return request({
    url: '/bus/point',
    method: 'put',
    data: data
  })
}

// 删除门店照片
export function delPoint (PLACEPOINTID) {
  return request({
    url: '/bus/point/' + PLACEPOINTID,
    method: 'delete'
  })
}
